class Point {
  x = 10
  y = 20
  scale (n: number) {
    this.x *= n
    this.y *= n
  }
}
const p = new Point()
p.scale(5)
console.log(p.x,p.y);
